package com.tang.algorithm.string;

/**
 * @author tlm
 * @version 1.0
 * @date 2020/5/29 10:03 下午
 */
public class LeetCodeMst58 {
    public static void main(String[] args) {
        String s ="abcdefg";
        System.out.println(reverseLeftWords(s, 2));
    }

    
    public static String reverseLeftWords(String s, int n) {
        return s.substring(n,s.length())+s.substring(0,n);
    }
}
